// pages/road/road.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    myRoad:[],
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    wx.request({
      url: 'https://www.easy-mock.com/mock/5d68bd1e48601505d3231b88/myOrder',
      success:(res)=>{
        this.setData({
          myRoad : res.data.data,
        })
      }
    })
  },
  roadDetail:function(){
      wx.navigateTo({
        url: '../roadDetail/roadDetail',
        success: function () {
          console.log('跳转到roadDetail页面成功');// success              
        },
        fail: function () {
           console.log('跳转到news页面失败');
        }
      })
    }
})